ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: #666;

  &:hover {
    text-decoration: none;
  }
}

body {
  background-color: #f5f5f5;
}

.container {
  background-color: #fff;
}

// 修改 container 的最大宽度为 1280
@media screen and (min-width: 1280px) {
  .container {
    width: 1280px;
  }
}

@media screen and (max-width: 991px) {
  .nav li {
    float: left;
    width: 20%;
  }

  article {
    margin-top: 10px;
  }
}

@media screen and (max-width: 767px) {
  .nav li {
    font-size: 14px;

    a {
      padding-left: 3px !important;
    }
  }

  .news li {
    width: 50% !important;

    &:nth-child(1) {
      width: 100% !important;
    }
  }

  .publish h3 {
    font-size: 14px;
  }
}

// header
header {
  padding-left: 0 !important;
}

.logo {
  background-color: #429ad9;
  text-align: center;

  img {
    max-width: 100%;
  }

  span {
    display: block;
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    color: #fff;
  }
}



.nav {
  background-color: #eee;
  border-bottom: 1px solid #ccc;

  a {
    display: block;
    height: 50px;
    line-height: 50px;
    padding-left: 30px;
    font-size: 16px;

    span::before {
      vertical-align: middle;
      margin-right: 5px;
    }

    &:hover {
      background-color: #fff;
      color: #333;
    }
  }
}

.news {

  li {
    float: left;
    width: 25%;
    height: 128px;
    padding-right: 10px;
    margin-bottom: 10px;

    a {
      position: relative;
      display: block;
      width: 100%;
      height: 100%;

      img {
        width: 100%;
        height: 100%;
      }

      p {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 41px;
        margin-bottom: 0;
        padding: 5px 10px;
        background: rgba(0, 0, 0, .5);
        font-size: 12px;
        color: #fff;
      }
    }

    &:nth-child(1) {
      width: 50%;
      height: 266px;

      p {
        line-height: 41px;
        font-size: 20px;
        padding: 0 10px;
      }
    }
  }
}

.publish {
  border-top: 1px solid #ccc;

  .row {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;

    .pic {
      margin-top: 10px;

      img {
        width: 100%;
      }
    }
  }
}

.banner {
  img {
    width: 100%;
  }
}

.hot {
  display: block;
  margin-top: 20px;
  padding: 0 20px 20px;
  border: 1px solid #ccc;

  span {
    border-radius: 0;
    margin-bottom: 20px;
  }

  p {
    font-size: 12px;
  }
}